<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="cdn" value="${pageContext.request.contextPath}/static"/>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>列表</title>
</head>
<body>
<a href="<c:url value="/entity/toAdd"/>">增加</a>
<c:if test="${not empty entities}"> 
	<table border="0" bordercolor="#cccccc" cellpadding="0" cellspacing="0">
        <tr>
            <th class="al_list1">id</th>
            <th class="al_list3">status</th>
            <th class="al_list1">时间</th>
            <th class="al_list3">操作</th>
        </tr>
  
	    <c:forEach items="${entities}" var="entity">
	     	<tr>
	            <td class="al_list1">
	                ${entity.id}
	            </td>
	            <td class="al_list3">${entity.status}</td>
	            <td class="al_list1">${entity.createTime}</td>
	            <td class="al_list3">
	                <a href="<c:url value="/entity/toEdit"/>?id=${entity.id}">修改</a>&nbsp;
	            </td>
	        </tr>
	     </c:forEach>
     </table>
</c:if>
</body>
</html>